package com.xiaode.controller.otherApi;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import com.jfinal.aop.Before;
import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.core.Path;
import com.jfinal.kit.Ret;
import com.xiaode.interceptor.SysCallFrequencyInterceptor;
import com.xiaode.interceptor.SysInterceptor;
import com.xiaode.util.apidoc.annotation.Api;
import com.xiaode.util.apidoc.annotation.ApiOper;
import com.xiaode.util.apidoc.annotation.ApiPara;

@Path("/otherApi")
@Api("其他api接口")
@Before(SysInterceptor.class)
public class OtherApiController extends Controller {

    @Inject
    private OtherApiService service;

    
	@ApiOper("学生活动数据")
	@Before(SysCallFrequencyInterceptor.class)
	public void studentActivityData(
			@NotEmpty @Size @ApiPara(value = "startTime", notes = "时间戳")Long startTime,
			@NotEmpty @Size @ApiPara(value = "page",notes = "当前页")Integer page,
			@NotEmpty @Size(max = 50) @ApiPara(value = "limit",notes = "每页大小")Integer limit) throws Exception{
		Ret ret = service.studentActivityData(startTime, page, limit);
		renderJson(ret);
    }
	
	
	
	
}
